import _config


class BaseConfig:
    def __init__(self):
        self.sisters = []
        self.logcat = "console"
        self.port = "sisdef"

    def GetConsoleLog(self):
        """
        初始化
        :return:
        """
        from Util._console_log import ConsoleLog
        return ConsoleLog(self)

    def GetPort(self):

        if self.port == "sisdef":return _config.sister_port
        if self.port == "oneedef": return _config.onneesama_port

        return self.port

